package bean;

import java.util.ArrayList;
import java.util.List;

public class NguoiDung extends Master {

    private int userID;
    private String userName;
    private String password;
    private Integer trangThai;
    private ThongTinNguoiDung thongTinNguoiDung;
    private List<DatHang> datHangs = new ArrayList<DatHang>();

    public NguoiDung() {
    }

    public int getUserID() {
        return userID;
    }

    public void setUserID(int userID) {
        this.userID = userID;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public Integer getTrangThai() {
        return trangThai;
    }

    public void setTrangThai(Integer trangThai) {
        this.trangThai = trangThai;
    }

    public ThongTinNguoiDung getThongTinNguoiDung() {
        return thongTinNguoiDung;
    }

    public void setThongTinNguoiDung(ThongTinNguoiDung thongTinNguoiDung) {
        this.thongTinNguoiDung = thongTinNguoiDung;
    }

    public List<DatHang> getDatHangs() {
        return datHangs;
    }

    public void setDatHangs(List<DatHang> datHangs) {
        this.datHangs = datHangs;
    }

    @Override
    public String toString() {
        return "NguoiDung{" + "userID=" + userID + ", userName=" + userName + ", password=" + password + ", trangThai=" + trangThai + ", thongTinNguoiDung=" + thongTinNguoiDung + ", datHangs=" + datHangs + '}';
    }
}
